package com.softeem.score.manager.service;

import com.github.pagehelper.PageInfo;
import com.softeem.score.model.dto.gradeDto.RecordScoreDto;
import com.softeem.score.model.entity.educational.GradeDetail;
import com.softeem.score.model.vo.educational.GradeVo;
import com.softeem.score.model.vo.school.MapVo;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;
import java.util.List;

public interface RecordScoreService {
    List<MapVo> findAllTeachingClassByCourseIdAndTeacherId(Long courseId, Long teacherId, String academicYear, Integer semester);

    PageInfo<GradeVo> findGradeInfoByPage(Integer pageNum, Integer pageSize, Long teachingClassId);

    ResponseEntity<byte[]> exportData(RecordScoreDto recordScoreDto);

    void saveGradeDetailInfo(List<GradeDetail> gradeDetailList);

    void updateTotalScore(Long id, BigDecimal totalScore);

    void importData(MultipartFile file, Long teachingClassId);
}
